package com.springboot.astra.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.springboot.astra.bean.Reply;

public interface ReplyService {
    Reply getOneById(Integer id);
    IPage<Reply> getAll(Page<Reply> page,String query);
    IPage<Reply> getAllIsReport(Page<Reply> page,String query);
    IPage<Reply> getAllForUser(Page<Reply> page,Integer postMainId);
    IPage<Reply> getAllReplyByUserId(Page<Reply> page,Integer userId);
    void insertReply(Reply reply);
    void updateOneById(Reply reply);
    void reportReply(Integer replyId);
    void deleteOneById(Reply reply);
}
